package com.dong.policy.service.policy.impl;

import com.dong.policy.entity.mysql.policy.Policy;
import com.dong.policy.service.policy.PolicyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author zhaodongchao
 * @date 2020/11/12 14:21
 */
@Service
public class PolicyServiceImpl implements PolicyService {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public Policy getPolicy(Long id) {
        logger.info(LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME));
        return new Policy(id,"P00001");
    }
}
